package com.example.myproject.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author ShiXin
 * @date 2018/8/8 21:24
 */
@Service
public class MyRabbitListener {

    @RabbitListener(queues = "mj.queues1")
    public void receive(Object o){
        System.out.println("MyRabbitListener:"+o.toString());
    }
}
